<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">会员账号:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="" class="form-control" readonly type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">网址:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-url" data-rule="required" class="form-control" name="row[url]" type="text" value="{$row.url|htmlentities}">
        </div>
    </div>
    <div class="form-group" style="display:none">
        <label for="c-keyword" class="control-label col-xs-12 col-sm-2">关键词:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-keyword" data-rule="required" class="form-control" name="row[keyword]" type="text" value="{$row.keyword|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-zhishu" class="control-label col-xs-12 col-sm-2">指数:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-zhishu" data-rule="" class="form-control" name="row[zhishu]" type="text" value="{$row.zhishu}">
        </div>
    </div>
	<div class="form-group">
        <label for="c-chupai" class="control-label col-xs-12 col-sm-2">初排:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-chupai" data-rule="" class="form-control" name="row[chupai]" type="number" value="{$row.chupai}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-xinpai" class="control-label col-xs-12 col-sm-2">新排:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-xinpai" data-rule="" class="form-control" name="row[xinpai]" type="number" value="{$row.xinpai}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-zuopai" class="control-label col-xs-12 col-sm-2">昨排:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-zuopai" data-rule="" class="form-control" name="row[zuopai]" type="number" value="{$row.zuopai}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-price" class="control-label col-xs-12 col-sm-2">单价:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="{$row.price}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-consumedays" class="control-label col-xs-12 col-sm-2">剩余消费天数:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-consumedays" data-rule="required" class="form-control" name="row[consumedays]" type="number" value="{$row.consumedays}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
